package com.eachonline.smart.model.base;

import com.eachonline.model.BaseModel;
import java.io.Serializable;
import java.util.Date;

public class BaseSmartCourseTimeList extends BaseModel implements Serializable {
    private String courseId;

    private String courseTitle;

    private Date courseStartTime;

    private Date courseEndTime;

    private String courseUrl;

    private Integer courseSort;

    private Date createTime;

    private String courseStartDateStr;

    private String courseStartTimeStr;

    private String courseEndDateStr;

    private String courseEndTimeStr;

    private static final long serialVersionUID = 1L;

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId == null ? null : courseId.trim();
    }

    public String getCourseTitle() {
        return courseTitle;
    }

    public void setCourseTitle(String courseTitle) {
        this.courseTitle = courseTitle == null ? null : courseTitle.trim();
    }

    public Date getCourseStartTime() {
        return courseStartTime;
    }

    public void setCourseStartTime(Date courseStartTime) {
        this.courseStartTime = courseStartTime;
    }

    public Date getCourseEndTime() {
        return courseEndTime;
    }

    public void setCourseEndTime(Date courseEndTime) {
        this.courseEndTime = courseEndTime;
    }

    public String getCourseUrl() {
        return courseUrl;
    }

    public void setCourseUrl(String courseUrl) {
        this.courseUrl = courseUrl == null ? null : courseUrl.trim();
    }

    public Integer getCourseSort() {
        return courseSort;
    }

    public void setCourseSort(Integer courseSort) {
        this.courseSort = courseSort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCourseStartDateStr() {
        return courseStartDateStr;
    }

    public void setCourseStartDateStr(String courseStartDateStr) {
        this.courseStartDateStr = courseStartDateStr == null ? null : courseStartDateStr.trim();
    }

    public String getCourseStartTimeStr() {
        return courseStartTimeStr;
    }

    public void setCourseStartTimeStr(String courseStartTimeStr) {
        this.courseStartTimeStr = courseStartTimeStr == null ? null : courseStartTimeStr.trim();
    }

    public String getCourseEndDateStr() {
        return courseEndDateStr;
    }

    public void setCourseEndDateStr(String courseEndDateStr) {
        this.courseEndDateStr = courseEndDateStr == null ? null : courseEndDateStr.trim();
    }

    public String getCourseEndTimeStr() {
        return courseEndTimeStr;
    }

    public void setCourseEndTimeStr(String courseEndTimeStr) {
        this.courseEndTimeStr = courseEndTimeStr == null ? null : courseEndTimeStr.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", courseId=").append(courseId);
        sb.append(", courseTitle=").append(courseTitle);
        sb.append(", courseStartTime=").append(courseStartTime);
        sb.append(", courseEndTime=").append(courseEndTime);
        sb.append(", courseUrl=").append(courseUrl);
        sb.append(", courseSort=").append(courseSort);
        sb.append(", createTime=").append(createTime);
        sb.append(", courseStartDateStr=").append(courseStartDateStr);
        sb.append(", courseStartTimeStr=").append(courseStartTimeStr);
        sb.append(", courseEndDateStr=").append(courseEndDateStr);
        sb.append(", courseEndTimeStr=").append(courseEndTimeStr);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseSmartCourseTimeList other = (BaseSmartCourseTimeList) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        return result;
    }
}